<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../resources/js/sun-init.js"></script>
<title>资源管理页面</title>
</head>
<body>
<table id="dg" class="easyui-datagrid" title="资源信息" style="width:auto;height:auto"
			data-options="
				iconCls: 'icon-edit',
				toolbar: '#tb',
				singleSelect: false,
				autoRowHeight:true,
				pagination:true,
				pageSize:10,
				url: '../index/resource',
				method:'post',
				onClickCell: onClickCell">
		<div id="tb" style="height:auto;width:auto;" >
					<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="append()">添加</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="removeit()">删除</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="accept()">保存</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" onclick="reject()">撤销</a>
					<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="getChanges()">改变</a>
				</div>
		<thead>
			<tr>
			    <th data-options="field:'check',width:'10%',fitColumns:true,align:'center',checkbox: true,editor:{type:'checkbox',options:{on:1,off:0}}">选择</th>
				<th data-options="field:'id',width:'30%',fitColumns:true">资源ID</th>
				<th data-options="field:'srcode',width:'13%',fitColumns:true,editor:'text'">资源编码</th>
				<th data-options="field:'srcname',width:'13%',fitColumns:true,align:'right',editor:'text'">资源名字</th>
				<th data-options="field:'srcuri',width:'30%',fitColumns:true,align:'right',editor:'text'">资源路径</th>
				<th data-options="field:'remark',width:'13%',fitColumns:true,editor:'text'">资源备注</th>
			</tr>
		</thead>
	</table>
<script type="text/javascript" src="../resources/js/sun.resource.js"></script>
</body>
</html>